/*
 * OpenCompanyInfoAction.java
 * 
 * Created: Jul 21, 2015
 * 
 * Copyright (c) ExpertPB 2015
 * All information contained herein is, and remains the property of
 * ExpertPB and its suppliers, if any.
 */
package com.emex.app.stuff.company;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionRegistration;
import org.openide.util.NbBundle.Messages;
import org.openide.windows.WindowManager;

@ActionID(
        category = "Tools",
        id = "com.emex.app.stuff.company.OpenCompanyInfoAction"
)
@ActionRegistration(
        displayName = "#CTL_OpenCompanyInfoAction"
)
@Messages("CTL_OpenCompanyInfoAction=Информация о магазине")
@ActionReference(path = "Menu/Магазин" /*, position = 333 */)
public final class OpenCompanyInfoAction implements ActionListener {

    @Override
    public void actionPerformed(ActionEvent e) {
       CompanyInfoDialog dialog = new CompanyInfoDialog(WindowManager.getDefault().getMainWindow(), true);
       dialog.setLocationRelativeTo(null);
       dialog.setVisible(true);
    }
}
